<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" >
<head>
    <meta charset="UTF-8">
    <title>登录页</title>
</head>
<body>
<form action="/login" method="post">
    用户名：<input type="text" name="username" maxlength="20" value=""/><br>
    密码：<input type="password" name="password" maxlength="20" value=""/><br>
    <input type="submit" value="提交">&nbsp;<span th:text="${error}"></span>
    <a href="/user" >注册</a>
</form>
</body>
</html>